<template>
  <div class="header-wrapper">
    <div class="header-left">
      <slot name="left"></slot>
    </div>
    <div class="header-mid">{{title}}</div>
    <div class="header-right">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: "hello world",
    },
    left: {
      type: String,
    },
    right: {},
  },
};
</script>

<style lang="scss">
.header-wrapper {
  // width: 100%;
  height: 100%;
  display: flex;
  .header-left {
    flex: 3;
  }
  .header-mid {
    flex: 4;
  }
  .header-right {
    flex: 3;
  }
}
</style>